const mongoose = require('mongoose');

const NoteSchema = new mongoose.Schema({
    title: String,
    content: String,
});

const NoteModel = mongoose.model('notes', NoteSchema);

//暴露模型对象
module.exports = NoteModel;